﻿#include<iostream>
using namespace std;

class Account {
private:
	string full_name;
	string number;
	long crnt_balance;
public:
	Account(string name, string num, long amnt) {
		full_name = name;
		number = num;
		crnt_balance = amnt;
	}
	string name() {
		return full_name;
	}
	string no() {
		return number;
	}
	long balance() {
		return crnt_balance;
	}
	void deposit(long amnt) {
		crnt_balance += amnt;
	}
	void withdraw(long amnt) {
		crnt_balance -= amnt;
	}
};

int main() {
	Account liyang("李阳", "12345678", 1000);
	Account zhouyan("周燕", "87654321", 200);

	liyang.withdraw(200);
	zhouyan.deposit(200);

	cout << "李阳的账户：" << liyang.no() << "，余额：" << liyang.balance() << '\n';
	cout << "周燕的账户：" << zhouyan.no() << "，余额：" << zhouyan.balance() << '\n';

	cin.get();
}